home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / ctrlh.vim < prev    next >
Encoding:
Text File  |  2001-04-25  |  1.0 KB  |  34 lines

  1. " Vim syntax file
  2. " Language:    CTRL-H (e.g., ASCII manpages)
  3. " Maintainer:    Bram Moolenaar <Bram@vim.org>
  4. " Last Change:    2001 Apr 25
  5.  
  6. " Existing syntax is kept, this file can be used as an addition
  7.  
  8. " Recognize underlined text: _^Hx
  9. syntax match CtrlHUnderline /_\b./  contains=CtrlHHide
  10.  
  11. " Recognize bold text: x^Hx
  12. syntax match CtrlHBold /\(.\)\b\1/  contains=CtrlHHide
  13.  
  14. " Hide the CTRL-H (backspace)
  15. syntax match CtrlHHide /.\b/  contained
  16.  
  17. " Define the default highlighting.
  18. " For version 5.7 and earlier: only when not done already
  19. " For version 5.8 and later: only when an item doesn't have highlighting yet
  20. if version >= 508 || !exists("did_ctrlh_syntax_inits")
  21.   if version < 508
  22.     let did_ctrlh_syntax_inits = 1
  23.     hi link CtrlHHide Ignore
  24.     hi CtrlHUnderline term=underline cterm=underline gui=underline
  25.     hi CtrlHBold term=bold cterm=bold gui=bold
  26.   else
  27.     hi def link CtrlHHide Ignore
  28.     hi def CtrlHUnderline term=underline cterm=underline gui=underline
  29.     hi def CtrlHBold term=bold cterm=bold gui=bold
  30.   endif
  31. endif
  32.  
  33. " vim: ts=8
  34.